#ifndef PORTRS232_H
#define PORTRS232_H
#include "porttestdll_global.h"
#include "qextserialport/qextserialport.h"
#include "PortType.h"

class CPortRS232 : public CPortType{
	Q_OBJECT
public:
	CPortRS232(CTestResult &testResultTemp);
	~CPortRS232(void);
private:
	CPortRS232(void);
private slots:
	void onReadyRead();
    void onDsrChanged(bool status);
public:
	QBool writeIoVector();
    QBool SetIOs(QDomElement &dom);
	QBool RunTest();
	EProtocol GetEProtocol(){
		return EProtocolSerial;
	}
private:
	QextSerialPort *m_port;
	qint32 port_id		;//="1" 
	qint32 baud_rate	;//="38000" 
	qint32 data_bit		;//="8" 
	qint32 stop_bit		;//="1" 
	qint32 parity		;//="0" 
};
#endif
